import { IParam } from '@/core';
import { IBIZOrderDetailServiceBase } from './ibiz-order-detail-service-base';

/**
 * 订单明细服务
 * 基于template/src/api/{{appEntities}}/data-service/{{appEntities}}-service.ts.hbs生成
 *
 * @export
 * @class IBIZOrderDetailService
 * @extends IBIZOrderDetailServiceBase
 */
export class IBIZOrderDetailService extends IBIZOrderDetailServiceBase {

    /**
     * 基础数据服务实例
     * 
     * @private
     * @type { IBIZOrderDetailService }
     * @memberof IBIZOrderDetailService
     */
    private static basicDataServiceInstance: IBIZOrderDetailService;

    /**
     * 数据服务存储Map对象
     *
     * @private
     * @type {Map<string, any>}
     * @memberof IBIZOrderDetailService
     */
    private static dataServiceMap: Map<string, any> = new Map();

    /**
     * Creates an instance of IBIZOrderDetailService.
     * @memberof IBIZOrderDetailService
     */
    constructor(opts?: IParam) {
        super(opts);
    }

    /**
     * 获取实例
     *
     * @static
     * @param 应用上下文
     * @return {*}  { IBIZOrderDetailService }
     * @memberof IBIZOrderDetailService
     */
    static getInstance(opts?: IParam): IBIZOrderDetailService {
        if (!this.basicDataServiceInstance) {
            this.basicDataServiceInstance = new IBIZOrderDetailService(opts);
        }
        return this.basicDataServiceInstance;
    }
}
export default IBIZOrderDetailService;